namespace RebelStar.Engine.Sprites
{
    public class TerrainSprite : SpriteBase
    {
        public const int WIDTH = 128, HEIGHT= 64;

        private readonly int mp;

        public TerrainSprite(string assetName, int statesHoriz, int statesVert) 
            : this(assetName, statesHoriz, statesVert, true)
        {}
        public TerrainSprite(string assetName, int statesHoriz, int statesVert, bool isPassable)
            : this(assetName, statesHoriz, statesVert, isPassable ? 1 : 0)
        {}
        public TerrainSprite(string assetName, int statesHoriz, int statesVert, int mp)
            : base(assetName, statesHoriz, statesVert)
        {
            this.mp = mp;
        }

        public override int Width
        {
            get
            {
                return TerrainSprite.WIDTH;
            }
        }
        public override int Height
        {
            get
            {
                return TerrainSprite.HEIGHT;
            }
        }
        /// <summary>
        /// Move points
        /// </summary>
        public int MP
        {
            get { return mp; }
        }
        public bool IsPassable
        {
            get { return mp > 0; }
        }
    }
}
